package com.jsmile.cloud.promotioncenter.activity.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author 龚亮
 * @version 1.0
 * @desc 为了薪资破万，还是睡一会儿吧...!
 * @date 2020年06月07日 10:57:35
 */
@ApiModel
@Data
@TableName("p_template_group")
public class TemplateGroup extends Model<TemplateGroup> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;
    @ApiModelProperty(value = "拼团活动模板Id")
    private Long templateId;
    @ApiModelProperty(value = "团长用户id")
    private Long groupOwner;
    @ApiModelProperty(value = "团状态， 0：待发布，1：进行中，2：已成团，3：成团失败，4：已取消")
    private Integer groupStatus;
    @ApiModelProperty(value = "已付款的订单数")
    private Integer paiedOrderCount;
    @ApiModelProperty(value = "开团时间")
    private java.util.Date startTime;
    @ApiModelProperty(value = "结束时间")
    private java.util.Date endTime;
    @ApiModelProperty(value = "create_time")
    private java.util.Date createTime;
    @ApiModelProperty(value = "update_time")
    private java.util.Date updateTime;
    @ApiModelProperty(value = "最后操作者")
    private String updateBy;
    @ApiModelProperty(value = "开团模式，1 快递，2: 自提")
    private Integer deliveryType;
    @ApiModelProperty(value = "成团时间")
    private java.util.Date successTime;
    @ApiModelProperty(value = "删除标记")
    @TableLogic
    private Integer delFlag;
    @ApiModelProperty(value = "租户id")
    private Long tenantId;
    @ApiModelProperty(value = "平台id")
    private Integer platformId;
    @ApiModelProperty(value = "业务id")
    private Integer bizCode;

}
